//-----------------------------------------------------------------------------
// Bend2D - Physics Engine
// Roberto Bender <beto.bender@gmail.com>
// Description: 
// Date: 13/07/2010
//-----------------------------------------------------------------------------
#ifndef EXCEPTION_H
#define EXCEPTION_H

#include <exception>
#include <string>
using namespace std;

namespace bend2d
{
    class InitializationException : public std::exception
    {
    public:
        InitializationException(const string& what) : m_What(what) {}
        ~InitializationException() throw() {}
        const char* what() const throw() { return m_What.c_str(); }
    private:
        string m_What;
    };
    
    class RuntimeException : public std::exception
    {
    public:
        RuntimeException(const string& what) : m_What(what) {}
        ~RuntimeException() throw() {}
        const char* what() const throw() { return m_What.c_str(); }
    private:
        string m_What;
    };    
}

#endif
